package com.example.springmysqldemo.service;

import com.example.springmysqldemo.dao.DepartmentDao;
import com.example.springmysqldemo.entity.Department;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DeptService {
    @Autowired
    private DepartmentDao departmentDao;
    public Department DeptInfo(String id){
        return departmentDao.findDeptInfo(id);
    }
}
